import http from '@/utils/http'

export const getTagListAPI = ({ pageNo, pageSize, order }) =>
  http.get('/api/tag/list', {
    params: { pageNo, pageSize, order }
  })

export const getTagDetailAPI = (id) => http.get(`/api/tag/name/${id}`)
export const addTagAPI = (params) => http.post('/api/tag', params)

export const getAllTagAPI = () => http.get('/api/tag/listAll')